package viewcomponents
{
	import mx.containers.Form;
	import mx.containers.FormItem;
	import mx.containers.Panel;
	import mx.controls.Button;
	import mx.controls.TextInput;

	public class Login extends Panel
	{
		private var form:Form = new Form();
		private var nameFI:FormItem = new FormItem();
		private var passwFI:FormItem = new FormItem();
		private var loginFI:FormItem = new FormItem();
		public var userInput:TextInput = new TextInput();
		public var passwInput:TextInput = new TextInput();
		public var loginButton:Button = new Button();
		
		public function Login()
		{
			super();
			title = "Login Panel";
			addChild(form);
			form.addChild(nameFI);
			nameFI.label = "User:";
			form.addChild(passwFI);
			passwFI.label = "Password:";
			form.addChild(loginFI);
			nameFI.addChild(userInput);
			passwFI.addChild(passwInput);
			passwInput.displayAsPassword = true;
			loginFI.addChild(loginButton);
			loginButton.label = "Login";
		}
		
	}
}